<template>
  <MdPreview :editorId="id" :modelValue="text" />
</template>

<script setup lang="ts">
import { MdPreview } from "md-editor-v3";
// preview.css相比style.css少了编辑器那部分样式
import "md-editor-v3/lib/preview.css";

const id = "preview-only";
// eslint-disable-next-line no-undef
defineProps(["text"]);
</script>
